<?php

class BaseAction extends CAction
{
    public $template      = null;
    public $renderPartial = false;
    public $isReturnUrl   = false;
    public $isRender      = true;
    
    public function __construct($controller, $id)
    {
        parent::__construct($controller, $id);
        
        $this->template = new Template;

        $oTheme = Yii::app()->getTheme();

        $this->template->resourceUrl    = $oTheme->resourceUrl = $oTheme->themesUrl.'/resources/';
        $this->template->themeUrl       = $oTheme->themeUrl    = $oTheme->baseUrl.'/';
        $this->template->themeImgUrl    = $oTheme->imgUrl      = $this->template->themeUrl.'images/';
        $this->template->themeCssUrl    = $oTheme->cssUrl      = $this->template->themeUrl.'css/';
        $this->template->themeJsUrl     = $oTheme->jsUrl       = $this->template->themeUrl.'js/';
        $this->template->controllerName = Yii::app()->controller->id;
        $this->template->actionName     = $this->id;
    }
    
    public function run()
    {
    }
}